<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title; ?></title>
<link href="<?php echo base_url('/public/_default/style/default.css'); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url('/public/_default/style/default_home.css'); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url('/public/_default/style/default_start.css'); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url('/public/_default/style/default_chapter.css'); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url('/public/_default/style/slide_show.css'); ?>" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo base_url('/public/_default/js/jquery-1.9.1.min.js'); ?>"></script>

</head>

<body>
<div id="wrap">
    <?php $this->load->view('_default/inc/_header.php'); ?>    
    
       
    <?php
        if (isset($page_type) && $page_type == 'Chapters') {
            $this->load->view('_default/inc/_sub-menu.php');
            $this->load->view('_default/inc/chapter/_title-bar-chapter.php');
            $this->load->view('_default/inc/chapter/_chapter-soft.php');
        } else {
            $this->load->view('_default/inc/_slider.php');
        }
    ?>
    
    
	<div id="content">
    	<?php
            if (isset($page_type)) {
                switch ($page_type) {
                    case 'Home':
                        $this->load->view('_default/inc/home/_home.php');
                        break;
                    case 'Started':
                        $this->load->view('_default/inc/start/_start.php');
                        break;
                    case 'Chapters':
                        $this->load->view('_default/inc/chapter/_page-content.php');
                        break;
                    default:
                        $this->load->view('_default/inc/home/_home.php');
                        break;
                }
            } else {
                $this->load->view('_default/inc/home/_home.php');
            }
        ?>
  	</div>
    
    <?php //require_once('inc/_content-footer.php'); ?>
    
    <?php $this->load->view('_default/inc/_footer.php'); //require_once('inc/_footer.php'); ?>
</div>
</body>
</html>
